$(function()
			{
				$("#gridTable").jqGrid({
					url:'servlet/MainServlet',
					datatype: "json",
					mytype:'post',
					height: 250,
					colNames:['编号','用户名', '性别', '邮箱', 'QQ','手机号','出生日期'],
					colModel:[
						{name:'id',index:'id', width:60, sorttype:"int"},
						{name:'userName',index:'userName', width:90},
						{name:'gender',index:'gender', width:90},
						{name:'email',index:'email', width:125,sorttype:"string"},
						{name:'QQ',index:'QQ', width:100},		
						{name:'mobilePhone',index:'mobilePhone', width:120},		
						{name:'birthday',index:'birthday', width:100, sorttype:"date"}
					],
					sortname:'id',
					sortorder:'asc',
				//	prmNames: {search: "search"},
					viewrecords:true,
					rowNum:10,
					rowList:[10,20,30],
					jsonReader:
						{
						repeatitems : false
					},
					pager:"#gridPager",
					caption: "jqGrid与Servlet集成"
			}).navGrid('#gridPager',{edit:false,add:false,del:false});
		})
		
		//?_search=false&nd=1332778322226&rows=10&page=1&sidx=id&sord=asc